package com.bawei.rk_01.Adapter

import com.bawei.base.utils.bean.Child
import com.bawei.rk_01.R
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class TwoAdapter : BaseQuickAdapter<Child,BaseViewHolder>(R.layout.item_two) {
    override fun convert(holder: BaseViewHolder, item: Child) {
        Glide.with(context).load(item.extra).into(holder.getView(R.id.two_iv))
        holder.setText(R.id.two_tv,item.name)
    }
}